﻿using System.ComponentModel.DataAnnotations;

namespace Model.DTO.Member
{
    /// <summary>
    /// 编辑会员DTO
    /// </summary>
    public class EditMemberDTO
    {
        /// <summary>
        /// 会员类型Id
        /// </summary>
        [Required]
        public int MemberTypeId { get; set; }
        /// <summary>
        /// 等级
        /// </summary>
        [Required]
        public int Level { get; set; }
        /// <summary>
        /// 到期时间
        /// </summary>
        [Required]
        public DateTime ExpiredTime { get; set; }
        /// <summary>
        /// Id
        /// </summary>
        [Required]
        public long Id { get; set; }
        /// <summary>
        /// 备注(128)
        /// </summary>
        [MaxLength(128,ErrorMessage = "备注长度不能超过128位")]
        public string? Remark { get; set; }
    }
}
